File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,35 @@ def process
222222 @q_msg << 'c'
223223 send_response req , allThreadsContinued : true
224224 when 'next'
225- @q_msg << 'n'
226- send_response req
225+ begin
226+ @session . check_postmortem
227+ @q_msg << 'n'
228+ send_response req
229+ rescue PostmortemError
230+ send_response req ,
231+ success : false , message : 'postmortem mode' ,
232+ result : "'Next' is not supported while postrmotem mode"
233+ end
227234 when 'stepIn'
228- @q_msg << 's'
229- send_response req
235+ begin
236+ @session . check_postmortem
237+ @q_msg << 's'
238+ send_response req
239+ rescue PostmortemError
240+ send_response req ,
241+ success : false , message : 'postmortem mode' ,
242+ result : "'stepIn' is not supported while postrmotem mode"
243+ end
230244 when 'stepOut'
231- @q_msg << 'fin'
232- send_response req
245+ begin
246+ @session . check_postmortem
247+ @q_msg << 'fin'
248+ send_response req
249+ rescue PostmortemError
250+ send_response req ,
251+ success : false , message : 'postmortem mode' ,
252+ result : "'stepOut' is not supported while postrmotem mode"
253+ end
233254 when 'terminate'
234255 send_response req
235256 exit
You can’t perform that action at this time.
0 commit comments