We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-e
1 parent fcb455f commit d847e20Copy full SHA for d847e20
1 file changed
lib/debug/client.rb
@@ -173,6 +173,8 @@ def send msg
173
end
174
175
def connect
176
+ pre_commands = (CONFIG[:commands] || '').split(';;')
177
+
178
trap(:SIGINT){
179
send "pause"
180
}
@@ -199,7 +201,12 @@ def connect
199
201
prev_trap = trap(:SIGINT, 'DEFAULT')
200
202
203
begin
- line = readline
204
+ if pre_commands.empty?
205
+ line = readline
206
+ else
207
+ line = pre_commands.shift
208
+ puts "(rdbg:remote:command) #{line}"
209
+ end
210
rescue Interrupt
211
retry
212
ensure
0 commit comments