Debugging project in SAP Business Application Studio
See original GitHub issueHello,
I created an app using sap-cloud-sdk init
and developed it using Visual Studio Code. During the development I debugged the app by using the JavaScript Debug Terminal available in VSCode.
I am currently exploring running the app in Business Application Studio. Running it normally in a Terminal with npm run start:dev
works fine in BAS. I haven’t found a JavaScript Debug Terminal available, so I tried to configure a launch.json
file.
In VSCode the following debugging configuration works perfectly, but in BAS it gets stuck in the preLaunchTask:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug App",
"program": "${workspaceFolder}/src/main.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"envFile": "${workspaceFolder}/.env",
"console": "integratedTerminal"
}
]
}
So my first question is if you recommend a different way of debugging using launch.json file? And my second one is if projects generated with sap-cloud-sdk are compatible with Business Application Studio?
If you can point me to some examples/documentation on this topic, it would be greatly appreciated also.
Thank you, Stefania
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Hello @stefania-santimbrean,
I had also a quick look and since it is working in VSC it must be some difference in the BAS which is based on eclipse theia which is like the open source variant of VSC.
I found also some issue in their repo: https://github.com/eclipse-theia/theia/issues/8930 regarding the
preLaunchTask
. So I would try the following:npm build
in the preLaunch and then the TS oneBest Frank
P.S.: From the BAS docu the dev space should be no problem. It is even listed at
Prerequisites
.Hi @stefania-santimbrean ,
I forwarded your question to my sdk colleagues. However, since this is a BAS specific question, I’m not sure whether we are able to answer.
Here is the support platform of BAS and the homepage.
Best regards, Junjie