Debugging JavaScript is not easy, especially outside the browser.
VS Code is so powerful for JavaScript debugger. I managed to get it working under Jasmine/Karma unit tests.
Pre-Requisite
- Install the karma chrome-launcher to your project
- Install the vs code chrome debugger extensions
Steps
- Config your kama.conf.js, make sure you can launch chrome with remote-debugging-port 9222Add the following in to your karma.conf.js
- Launch the browser custom launcher through gulp task, also we need to disable the JavaScript preprocessors, which purpose is magnifying for the test coverage
- Update launch.json file in the .vscode folder
- In the IDE, run task debug-karma, make sure the chrome browser is launched.
- Click the Debugger button,select Chrome, choose "Attach without source map", click start button
- Refresh chrome browser, or in the debugger console, type
location.reload();
Sample Project
Please check this sample JavaScript project: https://github.com/stevez/KataFizzBuzz/tree/master/javascript
You can import this project to launch the chrome debugger inside your VS Code IDE.
Meskipun ada banyak strategi permainan yang digunakan, namun sering kali petaruh merasa jumawa dan tidak memercayai manfaat dari strategi permainan tersebut
ReplyDeleteasikqq
dewaqq
sumoqq
interqq
pionpoker
bandar ceme terpercaya
hobiqq
paito warna terlengkap
bocoran sgp
paito warna china
ReplyDeletedata sydney update
datahk
syair sydney
http://keluaranpaito.com/
datasgp
paito warna terlengkap
http://warungsgp.org/
live hk 6d
live draw hk
kuşadası
ReplyDeletemilas
çeşme
bağcılar
didim
MC57P
This comment has been removed by the author.
ReplyDelete