Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

How to debug in visual studio code when running a backend shopify app?

zhicheng1
Shopify Partner
26 2 4

I'm making a sales channel app which requires running a backend server.  Is there anyway to debug this app while I am running locally?  The problem is the app is launched from shopify.exe and even though it runs nodejs somewhere down the line, visual studio seems unable to debug with it.  Is there anything that can be done?

Accepted Solution (1)

zhicheng1
Shopify Partner
26 2 4

This is an accepted solution.

Hey I managed to do it and it was easy.  Just go to run->add configuration and then add a "node" configuration.

View solution in original post

Replies 2 (2)

zhicheng1
Shopify Partner
26 2 4

This is an accepted solution.

Hey I managed to do it and it was easy.  Just go to run->add configuration and then add a "node" configuration.

Liam
Shopify Staff
2626 283 720

Glad you figured this out Zhicheng1 - thanks for coming back to update this post 🙂 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog