@martinffx/atelier 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,139 +0,0 @@
1
- # Debugging Tools by Language
2
-
3
- ## Node.js
4
-
5
- ### Node Inspector / Chrome DevTools
6
-
7
- ```bash
8
- # Start with debugging
9
- node --inspect server.js
10
-
11
- # Break on first line
12
- node --inspect-brk server.js
13
- ```
14
-
15
- Then open chrome://inspect in Chrome.
16
-
17
- ### VS Code Debugging
18
-
19
- Create .vscode/launch.json:
20
-
21
- ```json
22
- {
23
- "type": "node",
24
- "request": "launch",
25
- "name": "Debug Server",
26
- "program": "${workspaceFolder}/server.js",
27
- "console": "integratedTerminal"
28
- }
29
- ```
30
-
31
- ### ndb
32
-
33
- Better debugging for Node:
34
-
35
- ```bash
36
- npm install -g ndb
37
- ndb server.js
38
- ```
39
-
40
- ### console.table
41
-
42
- ```javascript
43
- const users = [{id: 1, name: 'Alice'}, {id: 2, name: 'Bob'}];
44
- console.table(users);
45
- ```
46
-
47
- ---
48
-
49
- ## Python
50
-
51
- ### pdb
52
-
53
- ```python
54
- import pdb
55
-
56
- def calculate():
57
- x = 10
58
- pdb.set_trace() # Break here
59
- y = x * 2
60
- return y
61
-
62
- # Commands: n (next), s (step), p x (print), l (list), w (where), c (continue)
63
- ```
64
-
65
- ### ipdb (better pdb)
66
-
67
- ```bash
68
- pip install ipdb
69
- import ipdb; ipdb.set_trace()
70
- ```
71
-
72
- ### VS Code
73
-
74
- Just set breakpoint and press F5.
75
-
76
- ### PyCharm
77
-
78
- Right-click → Debug.
79
-
80
- ---
81
-
82
- ## Go
83
-
84
- ### Delve
85
-
86
- ```bash
87
- # Install
88
- go install github.com/go-delve/delve/cmd/dlv@latest
89
-
90
- # Run
91
- dlv debug main.go
92
-
93
- # Commands: n (next), s (step), p x (print), bt (backtrace), c (continue)
94
- ```
95
-
96
- ### VS Code
97
-
98
- Just set breakpoint and press F5.
99
-
100
- ---
101
-
102
- ## Rust
103
-
104
- ### LLDB with VS Code
105
-
106
- ```json
107
- {
108
- "type": "lldb",
109
- "request": "launch",
110
- "program": "${workspaceFolder}/target/debug/myapp",
111
- "args": ["--arg1", "value"]
112
- }
113
- ```
114
-
115
- ### Rust Analyzer
116
-
117
- Hover over variable → "Debug" button.
118
-
119
- ---
120
-
121
- ## Browser (JavaScript)
122
-
123
- ### Chrome DevTools
124
-
125
- 1. F12 → Sources tab
126
- 2. Find file
127
- 3. Set breakpoint
128
- 4. Refresh page
129
-
130
- ### Firefox DevTools
131
-
132
- 1. F12 → Debugger tab
133
- 2. Find file
134
- 3. Set breakpoint
135
- 4. Refresh page
136
-
137
- ### VS Code
138
-
139
- Use "Debug JavaScript" or "Debug Edge" configuration.