cancel
Showing results for 
Search instead for 
Did you mean: 

Remote debugging for a TypeScript deployed app on BTP?

07-07-2025 1:22 PM
andreas_gall2 Participant
666 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Labels
CAPCAP (Cloud Application Programming Model)Cloud Application Programming (CAP)
Subscribe

Hi,

is it possible to remotely debug a in TypeScript developed app on BTP? cf ssh is enabled and I can connect the debugger with cf ssh -N -L 9229:127.0.0.1:9229 myapp

But since source is compiled into .js and .js.map the breakpoints set in .ts files have no effect so do breakpoints in the .js files of the gen folder.

Thanks

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

andreas_gall2
Participant
0 Likes

Basically found the solution only minutes after I posted this question. The solution lays here: https://community.sap.com/t5/technology-blog-posts-by-members/remote-debugging-of-sap-capm-app-nodej...

Login to subaccount and space, enable debugging with cf ssh myapp-srv and run cds debug myapp-srv and Chrome DevTools open up... voila.

Regards

Answers (0)