chrome-debugging

Problem to run chrome debugger in VS Code

主宰稳场 提交于 2020-11-29 04:25:17
问题 Hi I've got a problem to run Chrome Debugger directly in VS Code. I'm working on Linux Mint. Now i try to run debugger and error message says: Unable to launch browser: "Unable to find Chrome version stable. Available auto-discovered versions are: ["dev"]. You can set the "runtimeExecutable" in your launch.json to one of these, or provide an absolute path to the browser executable." Following the sugesstion I've added runtimeExecutable to chromeExecutable and now the error is: Unable to

Problem to run chrome debugger in VS Code

三世轮回 提交于 2020-11-29 04:24:54
问题 Hi I've got a problem to run Chrome Debugger directly in VS Code. I'm working on Linux Mint. Now i try to run debugger and error message says: Unable to launch browser: "Unable to find Chrome version stable. Available auto-discovered versions are: ["dev"]. You can set the "runtimeExecutable" in your launch.json to one of these, or provide an absolute path to the browser executable." Following the sugesstion I've added runtimeExecutable to chromeExecutable and now the error is: Unable to

Enable remote debugging on Chrome by default on mac?

旧时模样 提交于 2020-07-18 04:45:10
问题 I am working on getting the VS Code debugger to attach to Chrome as part of my regular workflow. I keep Chrome running all the time, and the highly-regarded VS Code Live Server extension opens my project in a new tab, which I like. I would like to be able to attach the VS Code debugger to this instance, but it looks like I have to start Chrome from the command line with sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 Several questions: Is there

Chrome debugger shows non-obvious (incorrect?) value for this inside an arrow function

偶尔善良 提交于 2020-01-06 08:49:32
问题 Here is an example: function main () { return () => { console.log(42); }; } main()(); If we put a breakpoint on the line with console log statement and inspect the value of this on the Scope panel in DevTools, we can see that: However, if we add this as a second argument to the logging statement, we can see a bit different picture: One always assumes this is borrowed by an arrow function from the outer lexical environment. Since we run the code in the non-strict mode the value for this for

React native + typescript can't see ts in chrome debugger

倖福魔咒の 提交于 2019-12-11 19:59:42
问题 I recently started a react native project with typescript, redux, react navigation and redux saga. Everything worked fine. I noticed, when I want to debug in chrome debugger I can not see the ts files, these I see only the js and when I put debugger in the code it stops only in js file. At first I thought the problem in my project, so I opened a new project with the command: react-native init MyAwesomeProject --template typescript And still I can not seem to see ts. In addition I downloaded

Angular CLI 1.7.0 and Visual Studio Code - can't set breakpoints

前提是你 提交于 2019-11-27 01:48:13
I'm using the Chrome Debugger plugin in Visual Studio Code to debug an Angular application. After upgrading to use angular/cli@1.7.0, we can no longer hit breakpoints in the typescript code within VS Code while debugging. If we roll back to angular/cli@1.6.7, breakpoints start working again. Here's my ng -v output: Angular CLI: 1.7.0 Node: 9.2.0 OS: win32 x64 Angular: 5.2.5 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router @angular/cli: 1.7.0 @angular-devkit/build-optimizer: 0.3.1 @angular-devkit/core:

Angular CLI 1.7.0 and Visual Studio Code - can't set breakpoints

北战南征 提交于 2019-11-26 09:48:59
问题 I\'m using the Chrome Debugger plugin in Visual Studio Code to debug an Angular application. After upgrading to use angular/cli@1.7.0, we can no longer hit breakpoints in the typescript code within VS Code while debugging. If we roll back to angular/cli@1.6.7, breakpoints start working again. Here\'s my ng -v output: Angular CLI: 1.7.0 Node: 9.2.0 OS: win32 x64 Angular: 5.2.5 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform