Skip to content

Commit 9649285

Browse files
committed
vscode debug instructions
1 parent 8767bf9 commit 9649285

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Diff for: .github/CONTRIBUTING.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you'd like to see a certain feature in flatpickr, file an issue first with re
1515

1616
While a lot of feature requests often don't make it to the core, they can be implemented as [plugins](https://github.com/chmln/flatpickr/tree/master/src/plugins).
1717

18-
### How to submit a pull requests
18+
### How to submit a pull request
1919

2020
1. Fork the repository.
2121
2. Setup the necessary dependencies by running `npm install`.
@@ -24,6 +24,30 @@ While a lot of feature requests often don't make it to the core, they can be imp
2424
5. Make desired changes and push.
2525
6. Go to https://github.com/flatpickr/flatpickr/compare?expand=1
2626

27+
### How to debug in vscode
28+
29+
1. Setup a local repo as above (How to submit a pull request).
30+
2. Install the [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)
31+
3. Add the following configuration to `${workspaceFolder}/.vscode/launch.json`
32+
```
33+
{
34+
"version": "0.1.0",
35+
"configurations": [
36+
{
37+
"name": "Launch Flatpickr Quick Start",
38+
"type": "chrome",
39+
"request": "launch",
40+
"url": "http://localhost:8000/index.html",
41+
"webRoot": "${workspaceFolder}"
42+
}
43+
]
44+
}
45+
```
46+
4. Make sure the development server is started `npm start`
47+
5. Set your desired breakpoints in the typescipt source files.
48+
6. Click on the debug symbol on the actions bar.
49+
7. Click on the play button to start the debug session in a new Chrome browser window.
50+
2751
## License
2852

2953
By submitting a contribution to this project, you agree to allow the project

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist
66

77
yarn.lock
88
pnpm-lock.yaml
9+
.vscode/*

0 commit comments

Comments
 (0)