code: def test_breakpoints_running():
      """Tests that breakpoints can be added and modified
      while the program is running."""
      t = make_tester()
      t.write(
          "test.jam",
          """\
          rule f ( )
          {
              a = 1 ;
          }
          rule g ( )
          {
              b = 2 ;
          }
          rule h ( )
          {
              c = 3 ;
              d = 4 ;
          }
          f ;
          g ;
          h ;
          UPDATE ;
      """,
      )
      run(
          t,
          """\
  (b2db) break test.jam:14
  Breakpoint 1 set at test.jam:14
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) break f
  Breakpoint 2 set at f
  (b2db) continue
  Breakpoint 2, f ( ) at test.jam:3
  3	            a = 1 ;
  (b2db) kill
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) break g
  Breakpoint 3 set at g
  (b2db) disable 2
  (b2db) continue
  Breakpoint 3, g ( ) at test.jam:7
  7	            b = 2 ;
  (b2db) kill
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) enable 2
  (b2db) continue
  Breakpoint 2, f ( ) at test.jam:3
  3	            a = 1 ;
  (b2db) kill
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) delete 2
  (b2db) continue
  Breakpoint 3, g ( ) at test.jam:7
  7	            b = 2 ;
  (b2db) kill
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) break test.jam:12
  Breakpoint 4 set at test.jam:12
  (b2db) clear g
  Deleted breakpoint 3
  (b2db) continue
  Breakpoint 4, h ( ) at test.jam:12
  12	            d = 4 ;
  (b2db) kill
  (b2db) run -ftest.jam
  Starting program: {{bjam}} -ftest.jam
  Breakpoint 1, module scope at test.jam:14
  14	        f ;
  (b2db) clear test.jam:12
  Deleted breakpoint 4
  (b2db) continue
  Child {{\d+}} exited with status 0
  (b2db) quit
  """,
      )
      t.cleanup()
  
imports: import BoostBuild
  import TestCmd
  import re
label_desc: Use image node_id 13 for calling a global function with example usage: test_breakpoints_running() without return types