tteee
Ruby
code posted
by
rrr
created at 02 May 18:58, updated at 02 May 18:58
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
def stopProgram() ap "stopping" if !@file.nil? and !File.stat(@file).directory? and @debuggerpid > 0 then @lastdebuggerresults.clear Process.kill("INT", @debuggerpid) @input_pipe.puts "where" @mutexread.synchronize { @cvread.wait(@mutexread) } # ap @lastdebuggerresults regexpr=Regexp.new("#{@file}:(\\d+)") @lastdebuggerresults.each do |line| case line when regexpr self.statusBar.showMessage("Stopped at line #{$1}.", 4000) @lastdebuggerresults.clear @w.tEsource.setMarker end end end end |
571 Bytes in 2 ms with coderay