ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.1k stars 125 forks source link

Question: Could not load source 'Fastfile': not found, while debugging a Fastlane lane from VSCODE #1076

Open lechuckcaptain opened 4 months ago

lechuckcaptain commented 4 months ago

Your environment

Describe the bug I'm not an expert here (so I'm probably missing something) but I was recently trying to debug a custom Fastlane lane with rdbg using vscode with the following terminal command:

rdbg --open=vscode -c -- bundle exec fastlane custom_lane

But it seems that the editor cannot load the source file: the Fastfile (see attached screenshot). I would guess that some context information are not correctly passed to the editor (am I missing some parameters?).

image

If I debug from the terminal, using the following command:

rdbg -c -- bundle exec fastlane custom_lane

Everything seems to work correctly (see attached screenshot).

image

I prepared an example repo to easily reproduce the issue.

Thanks in advance for your support, and sorry if it's a stupid question 😅

To Reproduce

Expected behavior I would expect to debug the custom_lane similarly from both terminal and vscode.