How do you debug Share Picker extensions?

I registered my Phone 7 app as Share Picker Extension . It works - my application is included in the list of Share options, and it starts, and I can upload the selected image. Good Excellent.

But then everything went wrong in my code. I would like to be able to debug the problems, but it seems like I cannot delay the debugger.

I can’t debug this in the simulator, because the Pictures application (and therefore the Share Picker function) is not in the simulator.

I can’t debug this on the phone, because as soon as I select my application from the Share list, the debugger detaches ... as soon as my application starts up again.

Can I connect a debugger to a running WP7 application? Can I enable the debugger? Am I doing it wrong? Any suggestions, tips or guesses are welcome, because I tear off my hair.

+3
source share
6 answers

Great question. I am not sure if this is possible. As far as I know, there is no way to attach a debugger when WP7 O / S launches an application (which was not called by the debugger).

Photo Share Extensibility extensibility, music + video content extensibility and other O / S extensibility points do not seem to play very well with the VS debugger. I usually resort to MessageBox.Show to debug any issues with WP7 O / S integration.

+1
source

M + V (, ). (Messagebox.Show .., ), , NavigationEventArgs OnNavigatedTo try..catch, , . , , . ( OnNavigatedTo , , e .)

/hub, , .

+2

1) 2) Zune 3) C:\Program Files\Microsoft SDK\Windows Phone\v7.1\Tools\WPConnect\x86\WPConnect.exe

+1

, , Windows Phone Connect Tool (WPConnect.exe), MSDN. .

, . . , .

0

WPConnect. , , . .

Windows Phone 7. .

, ( ), .

0

, , ...

, , : , ( ), Share Picker. ? , ...: - (

, .

I tried using Debug> Attach to Process, and then choosing Smart Device as the transport device and Windows Phone Device as Qualifier ... But in return I get the ugly "Unable to connect to" Windows Phone Device. ".

Bummer: - (

0
source

Source: https://habr.com/ru/post/1789549/


All Articles