dart code runs in DEBUG CONSOLE not in TERMINAL? - dart

**I started using dart to gain knowledge of it. It was going nice but when i reached "getting on users input" it seemed to be frustrating. ** because my code was running in DEBUG CONSOLE, where I was not able to enter data.
I used code Runner, but that is slow and has no DEBUG option. (as you can see on top right corner of screenshot)
Now I need a solution to this problem in a way, That either should it be possible to run and debug program in IntegratedTerminal or I should be able to enter data in debug CONSOLE.
can you please help me?
the code should in integratedTerminal WHERE I CAN ENTER INPUT DATA.
THANKS IN ADVANCE?

You can do this by running your code from the terminal, and not 'Start Debuging' in VSCODE or android studio, because that will run it in debug console.
So, from your terminal, cd to your project directory, and type dart run lib/main.dart
Things should shift to terminal.

Summary
Toolbar >> File >> Preferences >> Settings >> Dart: Cli Console >> terminal
STEP 1
Go to settings ("CTRL + ," on Windows and Linux)
STEP 2
Then search for the setting "Dart: Cli Console".
STEP 3
Then select "terminal".
And you should be good to go. This is what it should look like:

Related

How to get LUA to work in VSCode so it runs to the output window?

I installed LUA by following this guide: http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies
I put LUA in Program Files(x86)>lua>5.3.5
If i open up a terminal and type 'lua' it works.
If i create a file called hello.lua with print("Hello, World!") in it, how do i run this file so it comes up in the output window of VSCode?
If i try 'start without debugging' nothing happens'. If i Terminal>Run active file/selected text, the VS terminal window says
'print("hello, world!")
Unable to initialize device PRN'
I've obviously missed something simple but i just don't see a way to run this file to the output window, and an hour hunting through the docs and i'm none the wiser. My only other experience is with VS Community where it's just CTRL+Shift+B to complile and ALt+A to run.
Anyone help?
Thanks.
The Code Runner extension supports Lua, so you can press Ctrl-Alt-N to run the current script file. If it complains about not being able to find the executable, add this to your user settings:
"code-runner.executorMap": {
"lua": "C:\\Program Files (x86)\\lua\\5.3.5\\bin\\lua.exe"
}
Install the extension "Code Runner" in VS Code;
Click the gear icon and open the "Extension Settings";
Search for "Code-runner: Executor Map";
Go into setting.json to update the directory of the installed lua.exe.
"code-runner.executorMap": {
"lua": "\"C:\\Program Files\\Lua\\lua.exe\"",
}
Do not forget to add \" before and end of the directory.

Is there a more convenient way to start and debug an electron.net app?

I'd love to start working with electron.net but the thing that keeps me from doing so is the way you have to start and debug your app. On the GitHub page it says you always have to run "dotnet electronize start" in the console (https://github.com/ElectronNET/Electron.NET#start-the-application) just to start the app and if you want to debug it you have to manually attach the process to visual studios debugger (https://github.com/ElectronNET/Electron.NET#debug ). Is there a way where I can run and debug the app just like any other asp.net app?
I don't know about the '.NET' part but for Electron development, I love electron reload (github source) It reloads an electron app on source file changes.
Perhaps you can add in a console cmd to do what you need to get 'NET working.

HP WebInspect command line interface ( CLI)

Can anyone please guide me for WebInspect CLI .
I need to invoke dynamic code analyzer:webinspect ( for penetration testing ) from TeamCity (TC) .
Once i get to know command line invocations for WebInspect , i will write those in wrapper script and will invoke this wrapper script from TC before build step.
Thanks,
Vishal
There are two ways to get access to the command line switches that drive the CLI behavior. The First option is to invoke wi.exe with the "-?" argument and you will see explanations of each switch. The second option is to open the WebInspect help file (WebInspect.chm) and type the following text in the search tab text entry field: "wi.exe"
The help file can be launched by hitting F1 from within the running WebInspect UI or from the Windows start menu under "All Programs > HP > HP WebInspect > Help > WebInspect"

Why does Erlang run configuration in Eclipse IDE stop at 57%?

I am starting out Erlang in Win 7 64 bit box and I was able to use Erlang IDE just fine and since I am used to Eclipse I wanted to use Erlide with Eclipse. I am following running project document on erlide I was able to follow along. (Except step 41, Where it is talking about adding something to 'Main tab' and in my case it shows as 'Erlang', but options they are same) When I run the 'new configuration' on the HelloWorld example it runs and stuck at 57%.
I did install Erlang on my PC and installed it in a directory without space and it does shows up on my installed runtime in Eclipse.
When I run I do not see 'Eclipse IDE' like I saw when I was running Scala IDE in eclipse.
I did enter a dummy cookie name just in case if that is the problem
I tried running 'erl -name foo' to make sure node is able to run and it did.
Is there anything I need to check?
Thanks
Try first this:
* delete the configuration you created
* open a file in your project, right-click in it and choose Run as -> Erlang application
This will create a configuration that should work. You should see a console opening, where you can interact with the Erlang node.
If that is not happening, please go to window->preferences->erlang->report problem and create a report. Attach it to an issue at https://github.com/erlide/erlide/issues or send it to erlide_bugs#lists.sourceforge.net
I have the same problem on Win 7 - 64bit.
Problem: After some very first times build and run successfully, then eclipse couldnt run anymore. Restart Eclipse won't help.
Solution: Restarting the computer, and plz remember to Build Project before running it.

Blackberry application loading on simulator

while loading my application on BlackBerry simulator its displaying given below an error
Unable to start simulator. Check that the file exists. (java.lang.IllegalArgumentException: Executable name has embedded quote, split the arguments)
I had same issue whilst trying to run the demo application.
I am running Windows 7 Professional,JDK 7u21 and STS 3.2.
This is an issue with the changes made to the decoding of command strings specified to Runtime.exec method.
In summary the path configured for the simulator launch contains spaces.In my case "C:\Program Files (x86)"
To Fix this issue
Copy the simulator Dir and MDS to a new directory that has no spaces.
From the run configuration settings,enable the use of Customized Command line ,Customized Working directory and Customized MDS directory.Update the
entries to point to the new path that has no spaces.
Alternatively you can use windows shortened dir name by typing dir /X in the CMD from the directory that contains the simulator and MDS,this should give you something like PROGRAM~2
In the end ,the issue is not with the IDE or the Simulator,just java and windows not playing nice.
see Oracle JDK 7u21 release note
My solution was:
Go to debugger Configurations, Simulator, Advanced and COPY the "default command line".
Hit debug. When the alert with the error appears:
Open a shell/cmd and paste the text obtained in step 1, hit enter.
It should open the emulator an the debugger should attached without a problem.
This is not an error, this is an "upgrade" of Oracle Java due to security issues, you cannot longer execute commandlines with arguments if theyre not passed as an array..
Hope it helps.
Also:
Here is the error documentated:
http://www.oracle.com/technetwork/java/javase/7u21-relnotes-1932873.html#jruntime
Heres the patch but only for java 17 and earlier:
http://www.oracle.com/technetwork/topics/security/javacpuapr2013-1928497.html
remove the Java 7 and keep only the java 6 and it will work fine
i have the same issue and i solve it with the above solution

Resources