Solved

There a way to debug the execution of the script in FME?

  • 3 April 2024
  • 4 replies
  • 65 views

Badge +2

In a process in my company we use a Python script (PythonCaller) to call a download API, we need to modify it, but we get some errors that I don't get when running the script from Python on the Windows command line.

Is there a way to debug the execution of the script in FME?

icon

Best answer by becchr 3 April 2024, 13:20

View original

4 replies

Userlevel 4
Badge +17

I dont think there is an actual Python debugger available in FME. I usually use log messages at key points in my scripts to debug. You can log strings using logMessageString() https://docs.safe.com/fme/html/fmepython/api/fmeobjects/_log/fmeobjects.FMELogFile.logMessageString.html

 

Badge +2

I`ll try 

Thanks a lot

Userlevel 3
Badge +18

If possible, I try to avoid using Python and use baked-in FME functionality as much as possible
I don't know if it's an option here, but maybe you could consider an HTTPCaller to perform your downloadAPI calls?

Badge +2

I`ll try using HTTPCaller to perform my download API calls?

Reply