how to debug wasp api endpoint using breakpoints

I would like to debug using debugger and breakpoints. Is there way to achieve this when using opensaas that is setup using wasp?
7 Replies
kapa.ai
kapa.ai4w ago
Hi @p4j4r5. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information on how to debug Wasp API endpoints using breakpoints. However, you can check the Wasp documentation or community discussions for more information. For general debugging, you can run Wasp with more debug messages to analyze errors. Also, if you're using Wasp's API feature, you can use tools like Postman to test it as you normally would. For more specific debugging techniques or tools, I recommend checking the Wasp documentation (https://wasp-lang.dev/docs) or asking in the Wasp community. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @p4j4r5, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho3w ago
@sodic one for you
Filip
Filip3w ago
Hey @p4j4r5, Wasp unfortunately doesn't have first-class support for attaching a debugger, but you can do it manually. Here's how: https://discord.com/channels/686873244791210014/1134423535310360667/1134483737879531561
Filip
Filip3w ago
We have an issue where we track proper debugging support, I've included this thread: https://github.com/wasp-lang/wasp/issues/1998
GitHub
Node.js debugger for the server · Issue #1998 · wasp-lang/wasp
Some users asked how they can debug the server's Node.js app. Ideally, we would enable the users to use the --inspect with a Wasp flag: https://nodejs.org/en/learn/getting-started/debugging#ena...
p4j4r5
p4j4r53w ago
@sodic Thanks a lot. I will give it try to do manually
Filip
Filip3w ago
Did you get it working? Anything else I can help with?
p4j4r5
p4j4r53w ago
Hadn't had a chance yet will give this try later today
Want results from more Discord servers?
Add your server