|
152 | 152 | debugger-hook |
153 | 153 | invoke-debugger |
154 | 154 | break |
| 155 | + #+clasp core:breakstep |
155 | 156 | #+sbcl sb-debug::run-hook |
156 | 157 | #+sbcl sb-int::%break) |
157 | 158 | :test #'equal))) |
|
366 | 367 | (jupyter:debug-stop |
367 | 368 | (typecase condition |
368 | 369 | #+sbcl (sb-impl::step-form-condition "step") |
| 370 | + #+clasp (clasp-debug:step-form "step") |
369 | 371 | (otherwise "exception")) |
370 | 372 | environment) |
371 | 373 | (abort))) |
|
414 | 416 | :interactive-function #'read-evaluated-form |
415 | 417 | :report-function (lambda (stream) |
416 | 418 | (write-string "Evaluate form in selected frame." stream))) |
417 | | - #+sbcl |
| 419 | + #+(or clasp sbcl) |
418 | 420 | (step |
419 | 421 | (lambda () |
420 | | - (sb-impl::enable-stepping) |
| 422 | + #+clasp (core:set-breakstep) |
| 423 | + #+sbcl (sb-impl::enable-stepping) |
421 | 424 | (continue)) |
422 | 425 | :report-function (lambda (stream) |
423 | 426 | (write-string "Enable stepping and continue." stream)) |
424 | 427 | :test-function (lambda (condition) |
425 | 428 | (and *lisp-debugger* |
426 | | - (not (sb-impl::stepping-enabled-p)) |
| 429 | + (not #+clasp (core:breakstepping-p) |
| 430 | + #+sbcl (sb-impl::stepping-enabled-p)) |
427 | 431 | (find-restart 'continue condition)))) |
428 | 432 | (abort (lambda () |
429 | 433 | (return (values "ABORT" "Cell execution halted." nil))) |
430 | 434 | :report-function (lambda (stream) |
431 | 435 | (write-string +abort-report+ stream)))) |
432 | 436 | ,@body |
433 | 437 | (values))) |
| 438 | + #+clasp (core:unset-breakstep) |
434 | 439 | #+sbcl (sb-impl::disable-stepping))) |
435 | 440 |
|
436 | 441 |
|
|
449 | 454 |
|
450 | 455 | (defmethod jupyter:debug-in ((k kernel) environment) |
451 | 456 | (invoke-first-restart environment |
| 457 | + #+clasp 'clasp-debug:step-into |
452 | 458 | #+sbcl 'sb-impl::step-into |
453 | 459 | 'continue)) |
454 | 460 |
|
|
461 | 467 |
|
462 | 468 | (defmethod jupyter:debug-next ((k kernel) environment) |
463 | 469 | (invoke-first-restart environment |
| 470 | + #+clasp 'clasp-debug:step-over |
464 | 471 | #+sbcl 'sb-impl::step-next |
465 | 472 | 'continue)) |
466 | 473 |
|
|
0 commit comments