mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
This commit is contained in:
		
							parent
							
								
									2dfec552fe
								
							
						
					
					
						commit
						26a0f87e28
					
				
					 2 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -339,6 +339,9 @@ by the local file.
 | 
				
			||||||
   equal to that is reached.  In both cases, also stop when the current frame
 | 
					   equal to that is reached.  In both cases, also stop when the current frame
 | 
				
			||||||
   returns.
 | 
					   returns.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   .. versionchanged:: 3.2
 | 
				
			||||||
 | 
					      Allow giving an explicit line number.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. pdbcommand:: r(eturn)
 | 
					.. pdbcommand:: r(eturn)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   Continue execution until the current function returns.
 | 
					   Continue execution until the current function returns.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								Lib/pdb.py
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								Lib/pdb.py
									
										
									
									
									
								
							| 
						 | 
					@ -147,6 +147,16 @@ unt(il) [lineno]
 | 
				
			||||||
        or equal to that is reached.  In both cases, also stop when
 | 
					        or equal to that is reached.  In both cases, also stop when
 | 
				
			||||||
        the current frame returns.
 | 
					        the current frame returns.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					j(ump) lineno
 | 
				
			||||||
 | 
					        Set the next line that will be executed.  Only available in
 | 
				
			||||||
 | 
					        the bottom-most frame.  This lets you jump back and execute
 | 
				
			||||||
 | 
					        code again, or jump forward to skip code that you don't want
 | 
				
			||||||
 | 
					        to run.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        It should be noted that not all jumps are allowed -- for
 | 
				
			||||||
 | 
					        instance it is not possible to jump into the middle of a
 | 
				
			||||||
 | 
					        for loop or out of a finally clause.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
r(eturn)
 | 
					r(eturn)
 | 
				
			||||||
        Continue execution until the current function returns.
 | 
					        Continue execution until the current function returns.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue