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

Open
#1,076 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby, vscode

Research direction

Reproduce the issue in the linked debug-fastlane example using the terminal command and the rdbg --open=vscode command, after running bundle install. Compare how each mode resolves the Fastfile source, then verify that the VS Code session can open and debug custom_lane as the terminal session does.

Written by the indexing model from the issue text.

Description

Your environment

  • ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin23]
  • rdbg -v: rdbg 1.9.1

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

  • Checkout the example repo
  • Install the required gems with bundle install
  • Debug from terminal with: rdbg -c -- bundle exec fastlane custom_lane
  • Debug from vscode with: rdbg --open=vscode -c -- bundle exec fastlane custom_lane

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

Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.