X
Tap here to go to the mobile version of the site.

Support Forum

I can't reliably copy cookie and header values from the javascript debugger

Posted

This may not be the best place to ask this, but I can't find a more appropriate place.

I'm currently on Firefox 67.0.4.

I'm using the javascript debugger in Web Developer Tools to debug problems in our applications. I often need to copy cookie or header values out of the network panel (or wherever), and I find it is very hard to do this reliably. When I try to use the mouse to select a value, it often highlights more than I'm selecting, and then when I press Ctrl-c and then paste it into another destination, it often pastes my previous clipboard value, which indicates that it didn't copy anything.

Sometimes it seems like the only strategy that sometimes works is to only copy "most" of the string, leaving off the first or last character, and simply remember what that character is, and manually add it when I paste the value.

I often have to attempt the copy several times before it actually works.

This may not be the best place to ask this, but I can't find a more appropriate place. I'm currently on Firefox 67.0.4. I'm using the javascript debugger in Web Developer Tools to debug problems in our applications. I often need to copy cookie or header values out of the network panel (or wherever), and I find it is very hard to do this reliably. When I try to use the mouse to select a value, it often highlights more than I'm selecting, and then when I press Ctrl-c and then paste it into another destination, it often pastes my previous clipboard value, which indicates that it didn't copy anything. Sometimes it seems like the only strategy that sometimes works is to only copy "most" of the string, leaving off the first or last character, and simply remember what that character is, and manually add it when I paste the value. I often have to attempt the copy several times before it actually works.
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • Firefox 67.0.4
  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
  • Support URL: https://support.mozilla.org/1/firefox/67.0.4/WINNT/en-US/

Extensions

  • ADB Helper 0.12.1 (adbhelper@mozilla.org)
  • Cisco Webex Extension 1.4.0 (ciscowebexstart1@cisco.com)
  • Cookie Manager 1.5 (cookie-manager@robwu.nl)
  • Custom Tab Width 1.0.1.1-signed.1-signed (tab-width@design-noir.de)
  • Download Statusbar 0.9.10.1-signed.1-signed ({D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389})
  • McAfee Endpoint Security Web Control 10.6.0.311 ({cb40da56-497a-4add-955d-3377cae4c33b})
  • Open Tabs Next to Current 2.0.12 (opentabsnexttocurrent@sblask)
  • React Developer Tools 3.6.0 (@react-devtools)
  • Reload PAC button 0.3 (jid1-BAuVAdBr8gFlOQ@jetpack)
  • Skip Cert Error 0.4.4.1-signed.1-let-fixed.1-signed (skipcerterror@foudil.fr)
  • TabSearch 0.4.8 ({11a68c03-baa3-41fb-869c-5172c4c4dd2e})
  • Amazon Assistant for Firefox 10.1905.10.12044 (abb@amazon.com) (Inactive)
  • CookieWatcher 0.9.4.1-signed.1-signed.1-signed ({a3b3130e-3221-11a6-8ea8-43e1dbcc0a12}) (Inactive)
  • CSS Usage 0.3.4.1-signed.1-signed (csscoverage@spaghetticoder.org) (Inactive)
  • FoxyProxy Standard 6.3 (foxyproxy@eric.h.jung) (Inactive)
  • New Add-on Bar 0.24 (ausaddonbar@teo.pl) (Inactive)
  • Pastebin 3.0.1-signed.1-signed (pastebin.com@gmail.com) (Inactive)
  • RESTClient 3.0.8 ({ad0d925d-88f8-47f1-85ea-8463569e756e}) (Inactive)
  • RightBar 0.5.1-signed.1-signed (rightbar@realmtech.net) (Inactive)
  • Tab Utilities 1.5.28.1.1-signed.1-signed (tabutils@ithinc.cn) (Inactive)
  • Tabs on Bottom 0.7.3 (tabsonbottom@piro.sakura.ne.jp) (Inactive)
  • Tamper Data 11.0.1.1-signed.1-signed ({9c51bd27-6ed8-4000-a2bf-36cb95c0c947}) (Inactive)
  • The Addon Bar (restored) 3.2.9-compat-fixed-4 (the-addon-bar@GeekInTraining-GiT) (Inactive)
  • User Agent Switcher 0.7.3.1-signed.1-signed ({e968fc70-8f95-4ab9-9e79-304de2a71ee1}) (Inactive)
  • WorldIP 3.0.9.1-signed.1-let-fixed.1-signed ({f36c6cd1-da73-491d-b290-8fc9115bfa55}) (Inactive)
  • YSlow 3.1.8.1-signed.1-signed (yslow@yahoo-inc.com) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: NVIDIA Quadro M1000M
  • adapterDescription2:
  • adapterDeviceID: 0x13b1
  • adapterDeviceID2:
  • adapterDrivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
  • adapterDrivers2:
  • adapterRAM: 2048
  • adapterRAM2:
  • adapterSubsysID: 00000000
  • adapterSubsysID2:
  • adapterVendorID: 0x10de
  • adapterVendorID2:
  • clearTypeParameters: Gamma: 1.8 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50
  • contentUsesTiling: False
  • crashGuards: []
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.22774
  • driverDate: 8-14-2017
  • driverDate2:
  • driverVersion: 21.21.13.7761
  • driverVersion2:
  • featureLog: {u'fallbacks': [{u'message': u'Unsupported by driver', u'name': u'NO_CONSTANT_BUFFER_OFFSETTING'}], u'features': [{u'status': u'available', u'description': u'Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'HW_COMPOSITING'}, {u'status': u'available', u'description': u'Direct3D11 Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'D3D11_COMPOSITING'}, {u'status': u'available', u'description': u'Direct2D', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'DIRECT2D'}, {u'status': u'available', u'description': u'Direct3D11 hardware ANGLE', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'D3D11_HW_ANGLE'}, {u'status': u'available', u'description': u'GPU Process', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'GPU_PROCESS'}, {u'status': u'opt-in', u'description': u'WebRender', u'log': [{u'status': u'opt-in', u'message': u'WebRender is an opt-in feature', u'type': u'default'}], u'name': u'WEBRENDER'}, {u'status': u'blocked', u'description': u'WebRender qualified', u'log': [{u'status': u'available', u'type': u'default'}, {u'status': u'blocked', u'message': u'No qualified hardware', u'type': u'env'}], u'name': u'WEBRENDER_QUALIFIED'}, {u'status': u'available', u'description': u'Off Main Thread Painting', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'OMTP'}, {u'status': u'available', u'description': u'Advanced Layers', u'log': [{u'status': u'available', u'type': u'default'}, {u'status': u'available', u'message': u'Enabled for Windows 7 via user-preference', u'type': u'user'}], u'name': u'ADVANCED_LAYERS'}]}
  • info: {u'AzureContentBackend (UI Process)': u'skia', u'AzureCanvasBackend (UI Process)': u'skia', u'ApzWheelInput': 1, u'ApzDragInput': 1, u'ApzKeyboardInput': 1, u'AzureFallbackCanvasBackend (UI Process)': u'cairo', u'ApzAutoscrollInput': 1, u'AzureCanvasBackend': u'direct2d 1.1', u'AzureContentBackend': u'direct2d 1.1'}
  • isGPU2Active: False
  • lowEndMachine: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • offMainThreadPaintEnabled: True
  • offMainThreadPaintWorkerCount: 4
  • targetFrameRate: 60
  • usesTiling: False
  • webgl1DriverExtensions: GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_explicit_context GL_ANGLE_explicit_context_gles1 GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object OES_compressed_EAC_R11_signed_texture OES_compressed_EAC_R11_unsigned_texture OES_compressed_EAC_RG11_signed_texture OES_compressed_EAC_RG11_unsigned_texture OES_compressed_ETC2_RGB8_texture OES_compressed_ETC2_RGBA8_texture OES_compressed_ETC2_punchthroughA_RGBA8_texture OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture OES_compressed_ETC2_sRGB8_alpha8_texture OES_compressed_ETC2_sRGB8_texture
  • webgl1Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_disjoint_timer_query EXT_float_blend EXT_frag_depth EXT_shader_texture_lod EXT_sRGB EXT_texture_filter_anisotropic OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
  • webgl1Renderer: Google Inc. -- ANGLE (NVIDIA Quadro M1000M Direct3D11 vs_5_0 ps_5_0)
  • webgl1Version: OpenGL ES 2.0 (ANGLE 2.1.0.eff6bfdb1db9)
  • webgl1WSIInfo: EGL_VENDOR: Google Inc. (adapter LUID: 00000000000124c5) EGL_VERSION: 1.4 (ANGLE 2.1.0.eff6bfdb1db9) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled EGL_MOZ_create_context_provoking_vertex_dont_care EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_ANGLE_explicit_context
  • webgl2DriverExtensions: GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_explicit_context GL_ANGLE_explicit_context_gles1 GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_multiview GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object OES_compressed_EAC_R11_signed_texture OES_compressed_EAC_R11_unsigned_texture OES_compressed_EAC_RG11_signed_texture OES_compressed_EAC_RG11_unsigned_texture OES_compressed_ETC2_RGB8_texture OES_compressed_ETC2_RGBA8_texture OES_compressed_ETC2_punchthroughA_RGBA8_texture OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture OES_compressed_ETC2_sRGB8_alpha8_texture OES_compressed_ETC2_sRGB8_texture
  • webgl2Extensions: EXT_color_buffer_float EXT_disjoint_timer_query EXT_float_blend EXT_texture_filter_anisotropic OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
  • webgl2Renderer: Google Inc. -- ANGLE (NVIDIA Quadro M1000M Direct3D11 vs_5_0 ps_5_0)
  • webgl2Version: OpenGL ES 3.0 (ANGLE 2.1.0.eff6bfdb1db9)
  • webgl2WSIInfo: EGL_VENDOR: Google Inc. (adapter LUID: 00000000000124c5) EGL_VERSION: 1.4 (ANGLE 2.1.0.eff6bfdb1db9) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled EGL_MOZ_create_context_provoking_vertex_dont_care EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_ANGLE_explicit_context
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11
  • windowUsingAdvancedLayers: True

Modified Preferences

Misc

  • User JS: No
  • Accessibility: Yes
jscher2000
  • Top 10 Contributor
8509 solutions 69508 answers

Hi dkarr, I'm familiar with some Network Monitor issues.

For example, on the Headers panel, it is difficult to select header values. Highlighting doesn't always indicate being selected; triple-clicking the value before copying seems to work best for me. Alternately, you can turn on "Raw headers" to more easily select exactly what you want, especially if you want header names and/or multiple headers.

For the Cookies panel, there is a similar issue with individual cookie or field values. As you point out, it is much easier to select multiple lines than to work with an individual value.

The Dev Tools team maintains a forum over here if you want to give feedback on issues:

https://discourse.mozilla.org/c/devtools

Hi dkarr, I'm familiar with some Network Monitor issues. For example, on the Headers panel, it is difficult to select header values. Highlighting doesn't always indicate being selected; triple-clicking the value before copying seems to work best for me. Alternately, you can turn on "Raw headers" to more easily select exactly what you want, especially if you want header names and/or multiple headers. For the Cookies panel, there is a similar issue with individual cookie or field values. As you point out, it is much easier to select multiple lines than to work with an individual value. The Dev Tools team maintains a forum over here if you want to give feedback on issues: https://discourse.mozilla.org/c/devtools
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17275 solutions 156144 answers

If this is in the request and response headers in the Network Monitor then try to switch to the raw headers. That also makes it possible to copy the full field (label + value).

If this is in the request and response headers in the Network Monitor then try to switch to the raw headers. That also makes it possible to copy the full field (label + value).
Was this helpful to you?
Quote

Question owner

Is there any way to do the same thing for cookies? I was able to set raw headers, but not raw cookies.

Is there any way to do the same thing for cookies? I was able to set raw headers, but not raw cookies.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8509 solutions 69508 answers

The Set-Cookie response header and the Cookie request header are the ugly versions of what you see on the Cookies panel.

The Set-Cookie response header and the Cookie request header are the ugly versions of what you see on the Cookies panel.
Was this helpful to you?
Quote

Question owner

jscher2000 said

The Set-Cookie response header and the Cookie request header are the ugly versions of what you see on the Cookies panel.

When I view the set-cookie response header, I see a couple of cookies set there, but in the Cookies panel, I see dozens.

''jscher2000 [[#answer-1232888|said]]'' <blockquote> The Set-Cookie response header and the Cookie request header are the ugly versions of what you see on the Cookies panel. </blockquote> When I view the set-cookie response header, I see a couple of cookies set there, but in the Cookies panel, I see dozens.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8509 solutions 69508 answers

Hmm, that's strange. I would expect them to match.

Hmm, that's strange. I would expect them to match.
Was this helpful to you?
Quote

Question owner

Sorry, you were correct. I was only looking at the set-cookie response header. I didn't fully realize that they would be divided between the response and request.

Sorry, you were correct. I was only looking at the set-cookie response header. I didn't fully realize that they would be divided between the response and request.
Was this helpful to you?
Quote

Question owner

So it appears that I have to set raw headers in both requests and responses every time I start a session. I don't see a preference to make this the default. Would it be a reasonable enhancement request to have a setting to make this the default?

So it appears that I have to set raw headers in both requests and responses every time I start a session. I don't see a preference to make this the default. Would it be a reasonable enhancement request to have a setting to make this the default?
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8509 solutions 69508 answers

I think a lot of enhancements are possible! You may want to pursue it on the other forum I mentioned because the DevTools team doesn't monitor this one.

I think a lot of enhancements are possible! You may want to pursue it on the other forum I mentioned because the DevTools team doesn't monitor this one.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17275 solutions 156144 answers
See also the Storage Inspector. *https://developer.mozilla.org/en-US/Tools/Storage_Inspector
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.