Giter Site home page Giter Site logo

Undefined method 'index' for nil:NilClass @ /usr/local/bundle/ruby/2.6.0/gems/debase-0.2.4.1/lib/debase/context.rb:35:in `at_line' about ruby-debug-ide HOT 2 OPEN

MPLSFedResearchTZ avatar MPLSFedResearchTZ commented on August 10, 2024
Undefined method 'index' for nil:NilClass @ /usr/local/bundle/ruby/2.6.0/gems/debase-0.2.4.1/lib/debase/context.rb:35:in `at_line'

from ruby-debug-ide.

Comments (2)

MPLSFedResearchTZ avatar MPLSFedResearchTZ commented on August 10, 2024

dock compose file:
version: '3.7'
services:
web:
build: .
volumes:
- .:/data
environment:
DATABASE_HOST: db
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: password
POSTGRES_PORT: 5432
SOLR_DEVELOPMENT_URL: http://solr:8983/solr/hydra-development
SOLR_TEST_URL: http://solr:8983/solr/hydra-test
FCREPO_DEVELOPMENT_URL: http://fcrepo:8080/rest/
FCREPO_TEST_URL: http://fcrepo:8080/rest/
REDIS_URL: redis://redis:6379/0
stdin_open: true
tty: true
command: bash -c "rm -f tmp/pids/server.pid && rdebug-ide --host 0.0.0.0 --port 9000 -- bin/rails s -p 3000 -b 0.0.0.0"
depends_on:
- db
- fcrepo
- solr
- redis
ports:
- 3000:3000
- 9000:9000
- 26162:26162

from ruby-debug-ide.

MPLSFedResearchTZ avatar MPLSFedResearchTZ commented on August 10, 2024

I use VScode and ruby version 2.6.3.

{
"name": "Attach to Docker",
"type": "Ruby",
"request": "attach",
"remotePort": "9000",
"remoteHost": "0.0.0.0",
"remoteWorkspaceRoot": "/data",
"cwd": "${workspaceRoot}",
"showDebuggerOutput": true
}

I had to remove/deactivate all the breakpoints to avoid this error. However, with removed/deactivated breakpoints, the debugger cannot be attached to the running code, which goes as soon as I click the debug button.

from ruby-debug-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.