cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Debug Remote Application - Issue in SAP BAS - "Failed to open DevTools"

fabi2295
Explorer
0 Kudos
116

Title:
CDS Debug Issue in SAP BAS - "Failed to open DevTools"

Question:
I am trying to debug my <nome_srv> service in SAP Business Application Studio (BAS) using the command:

cds debug teste-srv

However, I get the following error:

Failed to open DevTools: Command failed: google-chrome 'devtools://devtools/bundled/inspector.html?ws=localhost:9229/...'
/bin/sh: 1: google-chrome: not found
/bin/sh: 1: chromium-browser: not found
/bin/sh: 1: chromium: not found

Debugging works fine in my local VS Code environment. Also, using the old method in BAS works, but without Chrome:

cf ssh <app> -c "kill -usr1 `pidof node`"
cf ssh -N -L 9229:localhost:9229 <app>

The issue occurs specifically when using the command:

cds debug <service>

Do I need any additional configuration in BAS to make DevTools open properly?

I followed the official documentation here:
https://cap.cloud.sap/docs/tools/cds-cli#node-js-applications

Thanks in advance!

Accepted Solutions (0)

Answers (0)