Debug Adobe IO runtime application using VS Code | Community
Skip to main content
Level 7
January 16, 2025
Solved

Debug Adobe IO runtime application using VS Code

  • January 16, 2025
  • 2 replies
  • 954 views

Hello Team, I took the code from: https://github.com/AdobeDocs/adobeio-codelabs-barcode
Ran the command: aio app run --local

Able to use the URL: http://localhost:3233/api/v1/web/guest/my-barcode-app-0.0.1/barcode?value=adobe

 

Wanted to check, how to debug the application using VS code editor?

I can see below details in the cmd, while running the command: aio app run --local

 

i setting up vscode debug configuration files...
- create .vscode\launch.json

 

cc @arunpatidar   @sarav_prakash  @mk_aem21 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

sarav_prakash
Community Advisor
sarav_prakashCommunity AdvisorAccepted solution
Community Advisor
January 17, 2025
Level 7
January 17, 2025

Thanks a lot @sarav_prakash   for your quick help. Much appreciated. 

AmitVishwakarma
Community Advisor
Community Advisor
January 19, 2025

 

To debug your Adobe I/O Runtime application using VS Code:

  1. Run Locally: Ensure your app is running with aio app run --local.

  2. Create Debug Config: Add the following to .vscode/launch.json:

 

{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "program": "${workspaceFolder}/node_modules/.bin/aio", "args": ["app", "run", "--local"], "env": { "DEBUG": "*" }, "port": 9229 } ] }

 

  1. Run Debugger: Press F5 to start debugging.

  2. Set Breakpoints: Set breakpoints in your code and inspect them when the app hits the URL (http://localhost:3233).

This will let you debug your Adobe I/O Runtime application locally.

Level 7
January 20, 2025

Thanks a lot @amitvishwakarma  for your help