• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Error

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I typed the following code in netbeans:

# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.

__author__ = "KUNDAN JI"
__date__ = "$10 Jan, 2020 1:38:05 PM$"

if __name__ == "__main__":
   print "Hello World"

I got the following error:

Debug session normal end
[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell
[LOG]where you can enter python console commands while debugging
Debug session Abort =99
Debug session normal end

What may be the reason? How to solve it?
 
Bartender
Posts: 9615
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't use Netbeans but I don't see an error.  
What I assume is happening is that the program is running through to its completion and the debugger is exiting with the error code 99.
Can you set a breakpoint on the "hello world" line?  That should halt the debugger.  
 
Kundan Prabhu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joe Ess wrote:I don't use Netbeans but I don't see an error.  
What I assume is happening is that the program is running through to its completion and the debugger is exiting with the error code 99.
Can you set a breakpoint on the "hello world" line?  That should halt the debugger.  



But it does not print the message. Why?
 
Sheriff
Posts: 15999
265
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you delete the line with the if condition and just leave the print statement?
 
Everybody! Do the Funky Monkey! Like this tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic