Slide 1

Slide 1 text

Effective Debugging React Apps in VS Code

Slide 2

Slide 2 text

About me むらじゅん (@murajun1978) Skils: Node.js, React, Ruby, Rails, GraphQL Community: Shinosaka.rb, Rails Follow-up Osaka

Slide 3

Slide 3 text

Shinosaka.rb #32 https://shinosakarb.doorkeeper.jp/events/82341

Slide 4

Slide 4 text

No more Print debug

Slide 5

Slide 5 text

Debugging is one of the important skills for Programmer

Slide 6

Slide 6 text

Next.js debugging in VS Code

Slide 7

Slide 7 text

Build-in node.js debugger

Slide 8

Slide 8 text

Debugging of the Render process

Slide 9

Slide 9 text

"configurations": [ { "type": "chrome", "request": "launch", "name": "Debug Render", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}" }, { "type": "node", "request": "launch", "name": "Debug Server", "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/next", "runtimeArgs": [ "--inspect", ], "port": 9229, } ], "compounds": [ { "name": "Debug Next.js", "configurations": ["Launch Chrome", "Debug Server"] } ]

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Debugging of Node process

Slide 12

Slide 12 text

"configurations": [ { "type": "chrome", "request": "launch", "name": "Debug Render", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}" }, { "type": "node", "request": "launch", "name": "Debug Server", "runtimeExecutable": "node", "runtimeArgs": [ "--inspect", "server.js" ], "port": 9229, } ], "compounds": [ { "name": "Debug Next.js", "configurations": ["Launch Chrome", "Debug Server"] } ]

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Rails debugging in VS Code

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Extension: Ruby

Slide 18

Slide 18 text

Gems ruby-debug-ide https://github.com/ruby-debug/ruby-debug-ide debase https://github.com/denofevil/debase

Slide 19

Slide 19 text

Not stopping on breakpoint

Slide 20

Slide 20 text

gem 'ruby-debug-ide', '0.7.0.beta6' gem 'debase', '0.2.3.beta2'

Slide 21

Slide 21 text

VS Code Recipes https://github.com/Microsoft/vscode-recipes

Slide 22

Slide 22 text

No more Print debug

Slide 23

Slide 23 text

Effective debugging with VS Code

Slide 24

Slide 24 text

Thank you