cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App functions - how to debug with VS code

Zoltan
Participant

Hi,

I am curious if it's possible to debug app functions with breakpoint pauses.

So far, when I try to fix something that's not working, either I deploy a test version of my app function to dyna could, then call it, and try to make sense of the logs, or run it locally with jest. But in the latter case, I can't call dynatrace callbacks, as when executed with yest, the client library is not initialized.

Ok, I can mock, but the whole point would be to debug with live data.

Any suggestions?
Thanks,
Zoltan

this is an example I want to call and step by step debug:

Zoltan_0-1751623979337.png

 

1 REPLY 1

dani_coll
Dynatrace Advocate
Dynatrace Advocate

Hi Zoltan,

If you created the project through the dt-app CLI you should have a .vscode/launch.json file that includes debugging settings. By running that configuration you can debug your app function using breakpoints

dani_coll_0-1751627078574.png

 

Featured Posts