gitstatus
gitstatus copied to clipboard
Issue running Debugger
I installed debug and added export PATH="$PATH:/path/to/directory/containing/rdbg" to my zshrc file in an attempt to follow the requirement instructions. I added GITSTATUS_LOG_LEVEL=DEBUG to zshrc after putting error in chatGPT and following instructions. Havent been able to run debugger yet though.
This is what my launch.json looks like:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "rdbg",
"name": "Debug current file with rdbg",
"rdbgPath": "bundle exec rdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}/bin/rails",
"script": "${file}",
"args": [],
"askParameters": true
},
{
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach"
},
{
"type": "rdbg",
"name": "Run rake test",
"request": "launch",
"command": "rake",
"script": "test", // launch rake test with debugger
"args": [],
"askParameters": false // Do not ask startup parameter any more
},
]
}
and this is the error im getting in OUPUT terminal:
[[31mERROR[39m]: gitstatus failed to initialize.
Zsh log ([4m/private/var/folders/n8/qrczbs210ld5fws8qn5mczvh0000gn/T/gitstatus.POWERLEVEL9K.501.57816.1706495341.1.xtrace.log[24m):
[33m
+(anon):7> setopt monitor
(anon):setopt:7: can't change option: monitor
+(anon):7> return
[39m
System information:
[33m
zsh: 5.9
uname -a: Darwin Isidros-MBP 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
[39m
If you need help, open an issue and attach this whole error message to it:
[4mhttps://github.com/romkatv/gitstatus/issues/new[24m
Could not locate Gemfile or .bundle/ directory
Error: /bin/zsh -lic 'bundle exec rdbg --version': exit code is 10
Make sure to install rdbg command (`gem install debug`).
If you are using bundler, write `gem 'debug'` in your Gemfile.
[Start session]
{"d":{},"f":"067582ab-8a4d-4e77-a82d-6c3f5f9ca9c4","g":"rdbg","h":"Debug current file with rdbg","i":{"uri":{"$mid":1,"fsPath":"/Users/isidrom/projects/rb/ruby-exercises","external":"file:///Users/isidrom/projects/rb/ruby-exercises","path":"/Users/isidrom/projects/rb/ruby-exercises","scheme":"file"},"name":"ruby-exercises","index":0},"j":{"type":"rdbg","name":"Debug current file with rdbg","rdbgPath":"bundle exec rdbg","request":"launch","cwd":"/Users/isidrom/projects/rb/ruby-exercises","command":"/Users/isidrom/projects/rb/ruby-exercises/bin/rails","script":"/Users/isidrom/projects/rb/ruby-exercises/script.rb","args":[],"askParameters":true,"__configurationTarget":6,"rdbgExtensions":["traceInspector"],"rdbgInitialScripts":[]}}
What are you trying to do? What do you want to run a debugger?
@romkatv Thanks for replying. Yeah just trying to run the debugger. I was following the assignment on The Odin Project and havent been able to run it because of this error.