Altera_Forum
Honored Contributor
11 years agoUnable to debug Nios Applications under Linux
Hello, I'm using Nios II EDS 14.0 under Linux (CentOS 6.5) and I actually can't debug any applications: they run fine (by clicking on "run as Nios II Hardware") but they won't debug. I get this message:
Launching <configuration name> has encountered a problem. Error creating session ImportError: No module named site where <configuration_name> is, of course, my debug configuration. Opening the error log I get this stacktrace org.eclipse.cdt.debug.mi.core.MIException: ImportError: No module named site at org.eclipse.cdt.debug.mi.core.MISession.setup(MISession.java:239) at org.eclipse.cdt.debug.mi.core.MISession.<init>(MISession.java:210) at org.eclipse.cdt.debug.mi.core.MIPlugin.createMISession0(MIPlugin.java:142) at org.eclipse.cdt.debug.mi.core.MIPlugin.createSession(MIPlugin.java:471) at org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createGDBSession(AbstractGDBCDIDebugger.java:114) at org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createSession(AbstractGDBCDIDebugger.java:68) at com.altera.debug.cdi.gdb.plugin.Nios2GdbCdiDebugger.createSession(Nios2GdbCdiDebugger.java:52) at com.altera.sbt4e.launch.hardware.Nios2HardwareLaunchDelegate.startDebugSession(Nios2HardwareLaunchDelegate.java:502) at com.altera.sbt4e.launch.hardware.Nios2HardwareLaunchDelegate.launch(Nios2HardwareLaunchDelegate.java:297) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) I tried with my application and also with a simple hello world project. I haven't found any solution to this problem in the forums. Anyone has any idea on how to fix this? Thanks a lot Giorgio Lopez