I was recently tinkering with HoloLens2 and read the code on Github about getting the RGB camera data stream from HoloLens2.I want to use debugging method to see how the program is running, but there is #if ENABLE_WINMD_SUPPORT statement in the code, according to the general Hololens application debugging method, I can't see the change of some parameters in the code, so please tell me how to debug the code running on HoloLens in this case. Thanks in advance for your help!
You can follow this documentation to learn how to attach a managed debugger to your Unity IL2CPP UWP build on your HoloLens 2 to enable you setting breakpoints and debug C# code as usual: Managed debugging with Unity
In short:
Check InternetClientServer and PrivateNetworkClientServer in the UWP Publishing Settings Capabilities
Check Development Build, Script Debugging, Wait for Managed Debugger (optional) in the Unity UWP build settings
Build in Unity.
Build and deploy from the Visual Studio solution to your device with the Debug or Release configurations.
Make sure your device is connected to the same network as your PC and start the app on your device and your device is not connected to your PC via USB.
Open any script in Unity and go to the Visual Studio solution that opens to view and edit.
Go to Debug -> Attach Unity Debugger.
Select your device from the list and click "OK" to attach.
Related
I need to test an application on Android Studio, but my virtual machine is not creating correctly and the studio does not see my phone, even though the debug mode is enabled on it. How can I test my application?
Check out the android developer official site how to connect the real device and run app. And for create virtual device follow this tutorial from the official site
Trying to create the first template application with the sample code provided by VUZIX Blade glasses. But, unfortunately do not know how to use the template application using Android Studio.
The Blade_Template_AppV2 has been imported and I am wondering on Android Studio to see the results.
Anyone tried to run the template application and got success?
You just need to enable debugging on your Vuzix Blade as described on https://www.vuzix.com/Developer/KnowledgeBase/Detail/1077 and you can run the template app directly from Android Studio on the glasses.
In order to run the sample Vuzix Code, you'll need to activate developer mode and adb bugging.
Because https://www.vuzix.com/Developer/KnowledgeBase/Detail/1077 is down and many other vuzix manual links are down, below I have detailed the steps to activate Developer Mode and ADB bugging on the Vuzix Blade.
Navigate to your settings, then click system,
system
followed by the info tab,
info
and once you're in the info tab,
swipe left until you activate Developer mode.
swipes will display like this
To enable adb bugging,
look for adb debugging in Dev Options and enable it on.
Before we move to the next step, make sure your device is manually plugged into your system.
In order to verify that the adb debugging worked, load your app from Android Studio, open up the terminal and type ./adb devices. Your device should be displayed now.
When you run your first app, you may notice gradle builds and other things differ and pop-ups will display asking to possibly downgrade certain options so that the hardware api on the glasses matches the app. Follow these instructions accordingly.
Afterwards, you should have a fully functioning app ready to use on your glasses' home screen.
This answer was supplemented by a response at https://blog.csdn.net/sinat_28962939/article/details/103065417
I am trying to build an android app using bluestacks (my phone died)
Android studio can see the emulator in the devices list but when i try to run my app, android studio throws this error:
Installation did not succeed.
The application could not be installed.
Installation failed due to: 'closed'
Retry
I have tried launching both android studio and bluestacks as administrator.
I have also tried opening the standalone device monitor in the SDK tools folder
This throws another error :
could not open Selected VM debug port(8700)
The error log of the monitor contains lots of errors of missing directories.
error log: https://pastebin.com/mmA83ch7
thanks
Go to Settings -> Preferences and Enable Android Debug Bridge, Enable android input debugging
So someone on the bluestacks team decided that putting an adb toggle in "Preferences" and not in "advanced" was a good idea,
also literally not on any other single post has anyone said to make sure adb was toggled on.
the seting is in Setings -> Preferences, at the bottom
Open BlueStacks Go to Settings -> Advanced and Enable Android Debug Bridge, Enable android input debugging
Restart Bluestack and then Android Studio, this will make the connection.
happy debugging :)
I am a beginner on Android studio and programming Androids. I know Pascal and Python.
I have a Wordpress page that I wanted to make a app for my site to open it from the ANdrod and have some options in the app like contact us, about us etc.. and when I tried to debug or run the app I got this error message:
Waiting For Debugger. Application TecharenaGR (process com.example.techarena.techarenagr) is waiting for the debugger to
attach.
Also I tried to reboot my device s8, reboot my pc. The dev options on the smartphone are open .
The guide I followed to make that simple app is this one https://www.youtube.com/watch?v=a5dlmqM9Oo8&t=80s
What am I doing wrong?
I follow instruction on https://msdn.microsoft.com/en-us/library/azure/ff683670.aspx to debug a project in Azure Emulator in Visual Studio 2013. But after clicking "Show Compute Emulator UI", I can not find "Debug" On the Azure compute emulator (express) menu bar. What is the problem? Thanks for help.
You need to make sure that you have the correct project set as the Startup Project.
For example:
The Azure project here includes a Worker Role that is implemented in the Azure.Processor project.
With the Azure project as the startup project, hitting F5 will build the package, deploy it to the emulator, start it up and attach the debugger.
I don't think you need to click "Debug" in emulator UI. I think the document may be wrong. Just clicked "F5" to launch your application from VS2013 if it's built in debug. Once the emulator was started and your application was running, you can begin to debug by adding breakpoint.