How to add "Run as CLI Application" to Zend studio 9 Run/Debug toolbar? - zend-studio

By default configuration in a new workspace I have "Run as Web Application" in the run/Debug toolbar menu.
How should I configure the workspace|project to add the "Run as CLI Application" to the menu items?

another way to do it is to enable "Enable CLI Debug" at php debug configurations in zend studio preferences

just to provide a bit of reference here on a mac os x 10.6, zendstudio 9
for a project
right click on the project
select properties
select php debug
enable project specific settings
select from php executable PHP 5.3.15 (CLI) or whatever is applicable
check the Enable CLI Debug checkbox
for zend studio
got to the menu Zend Studio
select Preferences
open the PHP section
select the Debug submenu
select from php executable PHP 5.3.15 (CLI) or whatever is applicable
check the Enable CLI Debug checkbox
you can then right click on a php file and run as PHP CLI Application

Related

Remote debugging Azure App Service with VS 2019

How do I enable debugging from VS2019 for my .NET app running in an Azure App Service? The portal only supports 2015 and 2017.
You can just connect from Visual Studio 2019 and it should all work without changing the portal settings.
Open Visual Studio and your project
Open Cloud Explorer View -> Cloud Explorer or ctrl+\, ctrl+x
Find your App Service node in Cloud Explorer and select it
Choose Attach Debugger from the context menu or the actions pane
The VS 2019 option doesn't display in the "Classic" Application settings screen, you will need to use the new Configuration menu, then choose the "General Settings" tab when the blade opens.
Have you downloaded and installed the VS 2019 Remote Tools?
https://visualstudio.microsoft.com/downloads/?q=remote+tools#remote-tools-for-visual-studio-2019 (see the bottom of the page)
I had the same problem. I closed VS 2019 and installed the Remote Tools. When I relaunched, I went to Cloud Explorer and i now have the menu items I'm expecting.
You can also set the remote debugging version to "VS2019" through https://resources.azure.com.
You'll need to find the Web App e.g. from under Subscription name / resourceGroups / RG name / providers / Microsoft.Web / sites.
Then open config / web.
Switch from Read Only to Read/Write at the top if you didn't.
Click Edit.
Modify the version and enable debugging by settings these under "properties":
"remoteDebuggingEnabled": true,
"remoteDebuggingVersion": "VS2019"
Click PUT.

Release build but debugging enabled

I'm trying to export an Android app. I've selected "Release | ARM".
It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled".
How can that be, given that it's a release build?
How do switch off debugging?
I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project.
To fix this, do the following:
Go into the Android project options (double-click on the Android project).
Select the Compiler options.
In the "Debug information" drop-down menu, select None (mine had the Portable option selected). Do this configuration for the Release build (the "Configuration" drop-down menu at the top says Release (Active)).
Click on the Android Build options and take a look at the "Debugging Options". The Enable developer instrumentation (debugging and profiling)setting should be greyed out (and the checkbox should be unchecked). The setting is greyed out because of what was done in step 3.
Publish the project.
So the problem was that by default the "Debug Information" wasn't set to None.

Xamarin iOS Release Build fails

I am using Xamarin iOS in Visual Studio 2017 for Windows!
Building and debugging the debug Version of my App via a build host works great. But when I try to build the Release Version it says:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3463,5): error MSB6006: "sgen.exe" exited with code 1.
Signing Identities are installed and vislible in VS.
I also found this Blog post. But the workaround is only for Mac Users.
Does anyone know what's wrong here?
Thanks!
Have you configured your iOS release? if not this may be the solution.
In Visual Studio, open Solution Explorer (Keyboard: Ctrl + Alt + L).
Right-click your solution and then click Configuration Manager.
On the configuration manager dialog box open the active solution configuration drop-down menu and click New.
On the new solution configuration dialog box:
For Name, enter iOS Release
Open Copy settings from drop-down menu and select Release.
Clear the Create new project configurations dialog box.
Open the Active solution platform drop-down menu:
Select iPhoneSimulator and clear the check boxes on all rows except
your Xamarin.iOS project and any projects (for example, portable class libraries) it depends on.
Repeat this step for iPhone.

Why is the Windows 'For developers' Settings dialog window appearing each time I create a new Zebble for Xamarin - Cross Platform Solution project?

Using Visual Studio 2015 Update 3, I am trying to follow the video instructions for creating a new project found here: http://zebble.net/docs/creating-a-new-project
I do the following:
I ensure the Zebble extension is installed
I click the start screen's 'New Project' link
I select 'Zebble for Xamarin - Cross Platform Solution' as project type
I name the project 'My application'
I click the 'OK' button
What happens next is:
The Windows 'Settings' dialog window appears on top off my Visual Studio window and in the left hand pane 'For developers' is selected (the same dialog that would appear if you pressed the Windows key on your keyboard and then typed "settings" followed by pressing the Enter key)
To resolve the Windows 'For developers' Settings dialog window appearing each time, you need to enable your device for development.
To enable Developer mode:
From the For developers settings dialog, choose the 'Developer mode'
Read the disclaimer for the setting you chose, then click Yes to accept the change.
After clicking Yes, you may be prompted to restart your computer.
Source: Enable your device for development
Make sure you are using the latest version of the Zebble Visual
Studio extension.
Try running your visual studio in admin mode.
Also see I can not build the generated UWP project by Zebble

Do not see an option to debug a Windows Phone Application?

I installed Windows SDK before and there was an option showing up in Visual Studio to test an application by debugging. I had to reinstall the SDK again but the only Option I was seeing was Start instead of any other WVGA OR WXGA simulator. Is there anyway I can fix this? Hyper-V option is also enabled and I am using 2011 Macbook Air 13.3"
If the options you refer to are the ones in the Visual Studio menu with the green arrow, it only shows the options for the StartUp project (the one which is bold in the Solution Explorer).
If you set your Windows Phone project as StartUp project (right click on the project, and select "Set as StartUp project"), you will see the mentioned emulator options on the menu.
Other option is to right click on the project, select Properties, and in the Debug tab, select the desired Target Device.

Resources