Unable to remote debug SAP CAP application using Approuter(XSUAA) in Visual Studio

524 Views Asked by At

I am working on a CAP Project which uses approuter for authentication in VS. For enabling remote debugging, have followed this blog.

The CAP project structure along with launch json file(configured as per blog) is shown below.

Project Structure

Since the project uses XSUAA, hence default-env json file is added in project as well as approuter(as shown above). For running the application, first "cds run" is used at project's location terminal(listening on port 4004) and then "npm start" is used at project's approuter location terminal(listening on port 5000).

PFB the default-env json file of approuter which is forwarding the token to port 4004(where app is running) and MTA file.

Env of Approuter

MTA file

After following the SAP Blog(link shared above), in chrome inspect can see the project node and inserted breakpoints accordingly as shown below.

Chrome Inspect

Dedicated Devtools for Node

But when I reload the approuter localhost port 5000, breakpoint is not triggered, neither any action on page triggers breakpoint kept at action method. Localhost 5000

Followed the sap blog and did all the configuration. Stucked at last step where breakpoint trigger in Chrome is expected.

Any help would be appreciated.

Regards.

0

There are 0 best solutions below