Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4633

How can I debug Fastlane file in VSCode with "VSCode rdbg Ruby Debugger" or similar?

$
0
0

I'm trying to debug my custom lane Fastlane code within VSCode, but it cannot find Fastlane source code. What may be a minimal launch.json snippet and what other setup is necessary?

So far I tried the following launch.json config:

...    {"type": "rdbg","name": "Debug Fastlane","request": "launch","script": "/opt/homebrew/lib/ruby/gems/3.2.0/bin/fastlane","args": ["my_lane"]    },...

The Fastlane snippet:

platform :ios do  desc "My lane"  lane :my_lane do |options|    require 'debug'    binding.break...

I can debug from command line:

rdbg -c -- bundle exec fastlane my_lane

However, if I try to debug from VSCode, it cannot find Fastlane file location:

Could not load source 'Fastfile': not found....

Expectedly without the source code the breakpoints and binding.break don't work as expected.


Viewing all articles
Browse latest Browse all 4633

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>