Code Monkey home page Code Monkey logo

Comments (3)

pocco81 avatar pocco81 commented on August 18, 2024 1

Oh ok gotcha. The current config for the chrome debugger works for javascriptreact and typescriptreact (as you can see here). So yeah it's my bad for not adding typescript to that table. I'll fix it ASAP, feel free to PR the fix tho!

from dap-buddy.nvim.

pocco81 avatar pocco81 commented on August 18, 2024

Hey! So this debugger was introduced by #28.

The only problem I see in your config is that you shouldn't require nvim-dap. DAPInstall does that, so try to stick to the default config:

local dap_install = require("dap-install")
dap_install.config("chrome", {<you can pass another config to it here>})

Also, keep in mind that DAPInstall is using the default config for each debugger, so their is no need to "merge DAPInstalls' config with nvim-daps'", because they are the same.

from dap-buddy.nvim.

mawkler avatar mawkler commented on August 18, 2024

@pocco81 The reason for the error message was that I had missed that I need to have chrome running with a remote debugger port like so:

google-chrome-stable --remote-debugging-port=9222

However, now when I set a breakpoint using toggle_breakpoint() and run continue() I get the following error message:

Breakpoint ignored because generated code not found (source map problem?).

I've even tried debugging the template react app created using the following command, but I still ge the same behaviour:

npx create-react-app my-app2 --template typescript

I'm guessing however that this is a problem with the debug adapter, and not with DAPInstall.

However, I have another question: how do I tell DAPInstall to use the adapter chrome for .ts files as well? I currently get the following message:

No configuration found for 'typescript'. You need to add configs to 'dap.configurations.typescript' (See ':h dap-configuration')

but I'm not quite sure how I configure this using DAPInstall.

from dap-buddy.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.