N
Nuxt4d ago
Depka

Debugging Nuxt in jetbrains IDEs

Hi, does anyone please know how to attach to already running node and already running chrome ? when i use the XML from this guide it starts new process fro node and chrome everytime :/ https://nuxt.com/docs/guide/going-further/debugging Furthermore im using monorepo with turborepo to run everything(both Nuxt and ionic projects and tsc watch on local packages) So the best would be to just attach to specific already running processes
Nuxt
Debugging · Nuxt Advanced
In Nuxt 3, you can get started with debugging your application directly in the browser as well as in your IDE.
3 Replies
kapa.ai
kapa.ai4d ago
Hi @Depka. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the knowledge sources, I can offer some guidance on debugging Nuxt in JetBrains IDEs, but I'll need to clarify that the sources don't provide specific instructions for attaching to already running processes in a monorepo setup with Turborepo. The Debugging guide you mentioned does provide a basic configuration for JetBrains IDEs, but as you've noticed, it starts new processes for Node and Chrome. To address your specific needs: 1. Attaching to running processes: JetBrains IDEs generally support attaching to running processes, but the exact configuration for this in a Nuxt context isn't provided in the given knowledge sources. 2. Monorepo with Turborepo: The sources don't contain information about debugging in this specific setup. Given these limitations, here are some general suggestions: 1. Instead of using the XML configuration provided in the guide, you might need to create custom Run/Debug configurations in your JetBrains IDE. 2. For Node.js, you could try creating a "Node.js Remote Debug" configuration and specify the port your Nuxt server is running on. 3. For Chrome, you might be able to use a "JavaScript Debug" configuration and specify the URL of your running application. However, please note that these suggestions are not based on the provided knowledge sources and may require further research or experimentation to implement correctly in your specific setup. If you need more detailed or specific instructions for your use case, you might want to consult the JetBrains documentation for your specific IDE or seek help from the Nuxt or JetBrains community forums. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4d ago
<@254009517455441920> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Depka
DepkaOP4d ago
Oh nevermind, found out that i can set up two attach to chrome/nodejs configs and have different port for node and chrome and then it catches it all :)

Did you find this page helpful?