| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2017 
				
				
				
				Device: Xiaomi 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Python newbie, need help about print statement debug
			 
			
			
			I've never written python in the past, but have to toughen my scalp in order to fulfill a rigid demand. I've set up the calibre development environment, but can't use the print statement to debug successfully. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			I added print(url) in the 224 lines of src/calibre/ebooks/metadata/sources/douban.py, then calibre-debug -g, select a certain ebook, download its douban metadata successfully....but now, the console only shows the debug information as shown in the below, I can't see any print(url)? don't understand why...which step is mistake? [Image violates Posting Guidelines for size - MODERATOR] Last edited by Dr. Drib; 05-17-2017 at 03:10 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Metadata download happens in a separate process. So it doesn;t output to the console. Instead simply use the view log button in the download metadata notification, it should contain your print statement output
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,614 
				Karma: 60184181 
				Join Date: Jan 2007 
				Location: Peru 
				
				
				Device: KINDLE: Oasis 3, Scribe (1st), Matcha; KOBO: Libra 2, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Moderator Notice 
		Please take a few moments to read our Posting Guidelines, in particular the part about the maximum image size allowed (600x600 pixels). Images that violate those guidelines may be deleted. It is every member's responsibility to read our Posting Guidelines and follow them. Thanks.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2017 
				
				
				
				Device: Xiaomi 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How to setup Python debug environment for Calibre Recipes | huang5307 | Recipes | 9 | 03-03-2016 03:35 PM | 
| win7-debug-python | jaapx | Calibre | 2 | 10-23-2015 01:11 AM | 
| Ctrl-Shft-R Debug vs calibre-debug -g | JimmXinu | Development | 3 | 11-20-2014 10:57 AM | 
| Newbie on technology want to print an e-book | bassmanwa | Introduce Yourself | 4 | 07-02-2011 05:23 AM | 
| Print vs Pixel: retailers experiment with print/ebook bundles | DMcCunney | General Discussions | 42 | 09-15-2010 12:29 PM |