def debugger(settings = {:immediate => false})
@settings = @settings.merge(settings)
skip_loader if @settings[:skip_loader]
spinup_thread
puts "1"
@debugee_thread = @thread
# if @settings[:hide_level]
# @processor.hidelevels[@thread] = @settings[:hide_level]
# end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: done all | |
# Example to test the ability of step/next to | |
# step into a recursive make or not. | |
$(info MAKEFLAGS = $(MAKEFLAGS)) | |
$(info MFLAGS = $(MFLAGS)) | |
all: | |
$(MAKE) done -f Makefile-step-next.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Try to reproduce a problem in accessing hash concurrently */ | |
#include <inttypes.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <pthread.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/_Inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# pidof for OSX. Basically a small modification of doitian's gist | |
target = ARGV[0] || "" | |
ids = [] | |
`/bin/ps -ax -o pid,comm`.split("\n").each do |line| | |
pid, command = line.chomp.split(' ', 2) | |
short_command = File.basename(command) | |
if target == command or target == short_command or | |
target =~ /^[-]?#{short_command}/ | |
ids << pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"sort" | |
) | |
// A PathCount object contains the data that we want to sort on. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Enbugger; | |
eval <<'EOE'; | |
sub five() | |
{ | |
Enbugger->stop; # Does not stop | |
my $x = 1; | |
return 5; | |
} | |
EOE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
eval <<'EOE'; | |
use Enbugger; | |
Enbugger->load_debugger('perl5db'); | |
Enbugger->stop; | |
$x = 1; | |
$y = 2; | |
EOE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/zsh /src/external-vcs/zshdb/test/unit/shunit2 test-action.sh test-break.sh test-cmd-complete.sh test-columns.sh test-dbg-opts.sh test-eval.sh test-examine.sh test-file.sh test-filecache.sh test-fns.sh test-get-sourceline.sh test-journal.sh test-lib-shell.sh test-msg.sh test-pre.sh test-run.sh test-tty.sh | |
test_action | |
test_breakpoint | |
test_cmd_complete | |
test_columnized | |
test_dbg_opts | |
test_eval_subst | |
test_examine | |
test_file_glob_filename | |
test_file_adjust_filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============= :__script__ ============== | |
Arguments: 0 required, 0 total | |
Locals: 0 | |
Stack size: 5 | |
Lines to IP: 1: 0..9, 1073741823: 10..17, 1: 18..41, 1073741823: 42..47 | |
0000: push_exception_state | |
0001: set_stack_local 0 | |
0003: pop | |
0004: setup_unwind 13, 0 |