Vscode-ruby: Cannot debug programs that read from STDIN

Created on 22 Sep 2016  路  8Comments  路  Source: rubyide/vscode-ruby

Your environment

  • vscode-ruby version: 0.6.0
  • Ruby version: 2.3.1
  • VS Code version: 1.5.0-insider
  • Operating System: MacOS

I'm trying to debug a basic Hello World app that requires basic console input (e.g. gets.chomp) via VSCode. The integrated Debug Console does not support user input so I'd like to launch an external console (this is supported in the Python and Node debuggers, for instance), but this does not seem to be currently supported. This would be a very nice feature for those getting started with Ruby who want to use VSCode.

Expected behavior

launch.json has a "externalConsole": true option in the configuration that launches an the console as an external window. This matches the Node debugger behavior.

Actual behavior

This option is not available so anything that uses gets will be blocked forever waiting for user input.

feature-request

Most helpful comment

Does this issue exist anywhere else I can follow or can it be re-opened? I'd like to be able to run my rspec debugger in the integrated terminals so I can have colors and styling.

All 8 comments

@kevcunnane thanks for the issue report, we didn't catch up with Code API for a while but yes this is an valid request indeed.

Any news on this feature?

Closing for issue cleanup. Apologies if this is still an issue. We are working to improve the core extension experience.

Does this issue exist anywhere else I can follow or can it be re-opened? I'd like to be able to run my rspec debugger in the integrated terminals so I can have colors and styling.

@Drew-Goddyn Have you ran into that issue again.

debugging ruby as "Debug Local File" gets stuck.
Some suggestion to resolve ?
Thanks.

Screenshot_1

use rdebug-ide -- script.rb to launch a rdebug server, and attach it with socket. this way can input and output from terminal, and debug also fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rebornix picture rebornix  路  3Comments

ghost picture ghost  路  4Comments

mmarinaccio picture mmarinaccio  路  3Comments

ecbrodie picture ecbrodie  路  5Comments

ckruse picture ckruse  路  5Comments