Issue running Debugger
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.8k
- Forks
- 134
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 1
Description
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":[]}}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names no gitstatus source file or test. Start by reproducing the listed zsh initialization and rdbg command errors separately, then determine whether gitstatus is responsible for either failure. Done means identifying the project component at fault and documenting a reproducible diagnosis or a confirmed non-gitstatus issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, zsh
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100