forked from CircuitVerse/CircuitVerse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruby debugger integration (CircuitVerse#3760)
* feat: byebug removed and debug gem added * feat(debug): rdbg script added * feat(debug): procfile added * feat(debug): .gitignore file updated for vscode configurations * fix(rdbg): version fixed * feat(rdbg): procfile update * feat(rdbg): rdbg script added * fix(rdbg): set web_concurrency to zero to resolve duplicate socket creation by worker process * feat(rdbg): gitignore updated for vscode configuration * feat(rdbg): attach debugger configuration added * feat(rdbg): dev script configured to accept chrome_debug option from cmd * feat(rdbg): procfile for chrome based ruby debugging * feat(rdbg_docker): update vscode configuration * feat(rdbg_docker): update docker-compose file for using rdbg * feat(rdbg_docker): docker_run script updated to use rdb remote debugging * feat(rdbg): documentation updated * feat(rdbg): gitignore updated * Update launch.json * feat(rdbg): remove version debug * Update rdbg --------- Co-authored-by: Tanmoy Sarkar <57363826+Tanmoy741127@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
104 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.1.0", | ||
"configurations": [ | ||
{ | ||
"type": "rdbg", | ||
"name": "Attach Debugger", | ||
"request": "attach" | ||
}, | ||
{ | ||
"type": "rdbg", | ||
"name": "(Docker) Attach debugger [:3001]", | ||
"request": "attach", | ||
"debugPort": "localhost:3001", | ||
"showProtocolLog": true, | ||
"localfsMap": "/circuitverse:${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
web: bundle exec rdbg -n --open=chrome --command -- bundle exec rails server -p 3000 | ||
js: yarn build --watch | ||
worker: bundle exec sidekiq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
web: bundle exec rails server -p 3000 | ||
web: bundle exec rdbg --open --nonstop --command -- bundle exec rails server -p 3000 | ||
js: yarn build --watch | ||
worker: bundle exec sidekiq | ||
worker: bundle exec sidekiq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
bundle_binstub = File.expand_path("bundle", __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("debug", "rdbg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters