Comments (3)
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.
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.
@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)
- Typescript is not supported for nodejs HOT 3
- Use system package in debugpy HOT 5
- Synchronous adapter installation HOT 1
- `ccppr_lldb` insists I do not need to install it HOT 1
- how to use iwth rust-tools.nvim?
- Error occur in using codelldb
- cannot step_into python library code [justMyCode option maybe] HOT 1
- DIInstall crashes nvim
- `:DIInstall ccppr_vsc` complains wget is missing URL HOT 4
- How do you actually run the debugger 😅 HOT 3
- nodejs configuration is not working
- No configuration found for 'c'
- Bash debugger implementation discussion
- Multi-install debuggers 🦆🦆🦆🦆
- require "dap_install" doesn't find anything HOT 3
- Add firefox debugger
- Migration from DAPInstall.nvim HOT 12
- Can not find the dependencies. HOT 2
- Beginner's documentation needed HOT 2
- attempt to index field 'info_window' (a nil value)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dap-buddy.nvim.